package com.cloud.zuul.inteceptor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConf implements WebMvcConfigurer {

  @Autowired
  private AuthActionInterceptor authActionInterceptor;
  
  @Override
  public void addInterceptors(InterceptorRegistry registry) {
//	  registry.addInterceptor(authActionInterceptor)
//	        .addPathPatterns("/**/**")
//	        .excludePathPatterns("/login","/assets/**","/css/**","/font/**","/jquery-context-menu/**","/js/**","/myjs/**","/plug-in/**")
//	        .addPathPatterns("/**");
  }

}
